<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Article extends CI_Controller {

	function __construct(){
		log_message(ETS_INFO, '### C:/admin/Article->construct');
		parent::__construct();
		$this->load->library('mylang');
		$this->mylang->load('admin');
	}
	
	public function index(){
		log_message(ETS_INFO, '### C:/admin/Article->index()');
		log_message(ETS_INFO, '### goto V:/article_list.php');
		
		//$post = $this->input->post(NULL,TRUE);
		$data = array(
			'articleList' => array(
				array(
					'id' => '1',
					'categorystr'=>'阅读语法-> 快速阅读理解训练',
					'titile'=>'Passage 1. Increase Your Likeability Factor (892w)',
					'hits'=>'99',
					'realhits'=>'80',
					'status'=>'1'
				),
				array(
					'id' => '2',
					'categorystr'=>'阅读语法-> 快速阅读理解训练',
					'titile'=>'Passage 2. Increase Your Likeability Factor (892w)',
					'hits'=>'91',
					'realhits'=>'81',
					'status'=>'1'
				)
			),
			'pageinfo'=>array(
				'curPageNum'=>'1',
				'totalPageNum'=>'10',
			)
		);

// 		$data = array(
// 				'articleList' => array()
// 		);
		$this->load->view('admin/article_list', $data);
	}
	
	public function add(){
		log_message(ETS_INFO, '### C:/admin/Article->add()');
		log_message(ETS_INFO, '### goto V:/yuedu_add.php');
		$this->load->view('admin/yuedu_add');
	}
}
